package com.guys8.cemsbackend.DTO;

import com.guys8.cemsbackend.entity.Class;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class ClassInformation {

    private Integer classid;
    private String classname;
    //0-教师，1++学生
    private List<UserInformation> users;

    public ClassInformation(Class classs,List<UserInformation> users) {
        setClassid(classs.getClassId());
        setClassname(classs.getClassName());
        setUsers(users);
    }
}
